import React, {Component} from 'react';
import {hoc1,hoc2,hoc3,hoc4} from "./hoc";

class App extends Component {
    render() {
        return (
            <div>
                <h4>我是App组件</h4>
                <h4>接收到的值：{this.props.a},{this.props.b}</h4>
            </div>
        );
    }
}

// export default hoc1(App,1,2);
// export default hoc2(App,{a:1,b:2});
// export default hoc3({a:1,b:2})(App);
export default hoc4(function (options) {
    return {
        ...options
    }
})(App);